<?php

require 'common.php';

require 'Table/Users.php';
$table = new Table_Users();

$security = GDGE_Security::getInstance();
$authConfig = new GDGE_Auth_Config($table);
//Zend_Debug::dump($security);

$adapter = new GDGE_Auth_Adapter($authConfig);
//Zend_Debug::dump($adapter);
$result = $security->authenticate($adapter, 'hiim', 'hiim');

//$adapter = new GDGE_Auth_Adapter();
//$result = $security->validate($adapter);

//$security->logout();

//Zend_Debug::dump($result);
?>

<html>
<head>
<title>Tests</title>
</head>
<body>
Various tests for Green Dagger Game Engine
<pre>
<?php 
//Zend_Debug::dump($result);

$validator = new GDGE_Resource_Validator_Array(array('gold', 'silver', 'iron'));

Zend_Debug::dump($validator->isValid('mercury'));
Zend_Debug::dump($validator->isValid('silver'));

?>
</pre>
</body>
</html>
